package com.neuedu.part07;

public class ComputerStudent extends Student{
	private double enWrite;
	private double onperation;
	
	
	
	
	public ComputerStudent(int xueHao, String name,String sex, int age,double qz, double qm,double enWrite, double onperation) {
		super(xueHao, name,sex,age,qz, qm);
		this.enWrite = enWrite;
		this.onperation = onperation;
	}




	public double getEnWrite() {
		return enWrite;
	}




	public void setEnWrite(double enWrite) {
		this.enWrite = enWrite;
	}




	public double getOnperation() {
		return onperation;
	}




	public void setOnperation(double onperation) {
		this.onperation = onperation;
	}




	public double allResults() {
		return getQm()*0.2+getQz()*0.2+this.enWrite*0.2+this.onperation*0.4;
	}

}
